package com.uinfor.service;

import com.uinfor.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/2/5  14:24
 **/
@FeignClient("seata-account-server")
public interface IAccountService {
    @PostMapping("/account/decrease")
    Result decrease(@RequestParam("userId")Long productId, @RequestParam("money") double money);
}
